const IndexControls = require('../controllers/IndexControls');
const UserControls = require('../controllers/UserControls');
const LoginControls = require('../controllers/LoginControls');
const DealerControls = require('../controllers/DealerControls');
const ManufacturerControls = require('../controllers/ManufacturerControls');
const SellerControls = require('../controllers/SellerControls');

module.exports = {
    // index
    'GET /': IndexControls.getIndex,

    // login
    'POST /login': LoginControls.login,
    'GET /login/info': LoginControls.getLoginInfo,
    'POST /login/out': LoginControls.Loginout,

    // user
    'POST /user/create': UserControls.createUser,
    'GET /user': UserControls.getUser,
    'POST /user/delete': UserControls.deleteUser,

    // Dealer
    'GET /dealer/query/query': DealerControls.getQuery,

    'GET /dealer': DealerControls.getDealer,
    'GET /dealer/all': DealerControls.getDealerAll,
    'POST /dealer/create': DealerControls.createDealer,
    'POST /dealer/change': DealerControls.changeDealer,
    'POST /dealer/delete': DealerControls.delDealer,

    'GET /dealerDeal': DealerControls.getDealerDeal,
    'GET /dealerDeal/all': DealerControls.getDealerDealAll,
    'POST /dealerDeal/create': DealerControls.createDealerDeal,
    'POST /dealerDeal/change': DealerControls.changeDealerDeal,
    'POST /dealerDeal/delete': DealerControls.delDealerDeal,

    // Manufacturer
    'GET /manufacturer/query/query': ManufacturerControls.getQuery,

    'GET /manufacturer': ManufacturerControls.getManufacturer,
    'GET /manufacturer/all': ManufacturerControls.getManufacturerAll,
    'POST /manufacturer/create': ManufacturerControls.createManufacturer,
    'POST /manufacturer/change': ManufacturerControls.changeManufacturer,
    'POST /manufacturer/delete': ManufacturerControls.delManufacturer,

    'GET /manufacturerDeal': ManufacturerControls.getManufacturerDeal,
    'GET /manufacturerDeal/all': ManufacturerControls.getManufacturerDealAll,
    'POST /manufacturerDeal/create': ManufacturerControls.createManufacturerDeal,
    'POST /manufacturerDeal/change': ManufacturerControls.changeManufacturerDeal,
    'POST /manufacturerDeal/delete': ManufacturerControls.delManufacturerDeal,

    'GET /manufacturerDaily': ManufacturerControls.getManufacturerDaily,
    'GET /manufacturerDaily/all': ManufacturerControls.getManufacturerDailyAll,
    'POST /manufacturerDaily/create': ManufacturerControls.createManufacturerDaily,
    'POST /manufacturerDaily/change': ManufacturerControls.changeManufacturerDaily,
    'POST /manufacturerDaily/delete': ManufacturerControls.delManufacturerDaily,

    'GET /tree': ManufacturerControls.getTree,
    'GET /tree/all': ManufacturerControls.getTreeAll,
    'POST /tree/create': ManufacturerControls.createTree,
    'POST /tree/change': ManufacturerControls.changeTree,
    'POST /tree/delete': ManufacturerControls.delTree,

    // Seller
    'GET /seller/query/query': SellerControls.getQuery,

    'GET /seller': SellerControls.getSeller,
    'GET /seller/all': SellerControls.getSellerAll,
    'POST /seller/create': SellerControls.createSeller,
    'POST /seller/change': SellerControls.changeSeller,
    'POST /seller/delete': SellerControls.delSeller,
};